#ifndef DETECTIONEVENT_H
#define DETECTIONEVENT_H

#include "MyHandler.h"
#include <vector>

class DetectionEvent
{
public:
    DetectionEvent();
    virtual ~DetectionEvent();

    virtual int removeFd(const int fd) = 0;
    virtual int addToEvent(const int fd) = 0;

    // 调用epoll_wait，并将其交给Event类的handleEvent函数处理
    virtual void Detect(std::vector<MyHandler*> &events) = 0;

};

#endif // DETECTIONEVENT_H
